<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>地图查看器</title>

    <link rel="stylesheet" href="http://127.0.0.1/arcgis_js_api/library/4.11/esri/css/main.css">
    <link rel="stylesheet" href="css/mainApp.css">
    <link rel="stylesheet" href="../dist/css/dextra.css">


    <script src="../dist/config.js"></script>

    <script src="http://127.0.0.1/arcgis_js_api/library/4.11/init.js"></script>
    <script>


        // Load the Map and MapView modules
        require(["esri/Map","esri/Basemap","dojo/on",
            "dextra/layers/TdtTerrienLayer",
            "dextra/layers/TdtTerrienAnnoLayer",
            "dextra/modules/viewers/MapViewer",
            "dojo/domReady!"], function(Map, Basemap,on,TdtTerrienLayer,TdtTerrienAnnoLayer,MapViewer) {
           // var layer0=new TdtVectorAnnoLayer();

            var layer1=new TdtTerrienLayer({
                key:""
            });
            var layer2=new TdtTerrienAnnoLayer({
                key:""
            });
//            console.log(layer)


            var basemap1 = new Basemap({
                baseLayers: [
                    layer1,layer2
                ]
            });


            var myMap = new Map({
                basemap: basemap1

            });


            var mapViewer = new MapViewer({
                map: myMap,
                viewNode: "viewDiv",
            });


        });
    </script>


</head>
<body>

<div id="viewDiv"></div>
</body>
</html>